package com.sunqianhu.design_patterns_23.behavioral.state;

public class OffState implements State{
    public void pressSwitch(Light light) {
        System.out.println("电灯已打开！");
        light.setState(new OnState()); // 切换到打开状态
    }
}
